package org.example.domain.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@EqualsAndHashCode(callSuper = false)
@Data
@ApiModel(description = "日志查询条件实体类")
public class LogQuery extends PageQuery{
    
    @ApiModelProperty("操作模块")
    private String operation;
    
    @ApiModelProperty("操作详情")
    private String content;
    
    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    
    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;
    
    @ApiModelProperty("操作员")
    private String userName;
    
    @ApiModelProperty("操作ip")
    private String clientIp;
    
    @ApiModelProperty("操作状态")
    private Integer status;
}
